package laMalinche;

import com.google.inject.Injector;

/**
 * Created by IntelliJ IDEA.
 * User: ranran
 * Date: Aug 26, 2008
 * Time: 10:44:22 PM
 * To change this template use File | Settings | File Templates.
 */
public class DevMode {
   Injector injector;
    private static DevMode instance;

   

    public Injector getInjector() {
        return injector;
    }


    public static DevMode getInstance() {
        if (instance == null) {
            instance = new DevMode();
        }
        return instance;
    }


    public void setInjector(Injector injector) {
        if (this.injector != null){
        throw new RuntimeException();
    }
        this.injector = injector;
        //To change body of created methods use File | Settings | File Templates.
    }


    public static void clean(){
        instance = null;

    }
}
